//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class NeighborsSellCancel extends LogicCommand {
    private final int cmdId = 43;
    private final int neighborId;

    public NeighborsSellCancel(int ticks, int neighborId) {
        super(ticks);
        this.neighborId = neighborId;
    }

    public int getCommandId() {
        return 43;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(43);
        stream.writeInt(this.neighborId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
